package com.hdoit.kylin.logical.user.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.tennetcn.common.enums.ModelStatus;
import com.tennetcn.common.enums.pub.YesOrNoInteger;
import com.tennetcn.common.message.ModelBase;
import com.tennetcn.common.utils.CommonUtils;
import com.tennetcn.common.utils.DateUtils;

@Entity
@Table(name="teacher_student")
public class TeacherStudent extends ModelBase{
	@Id
	@Column(name="id")
	private String id;
	
	@Column(name="createDate")
	private Date createDate;
	
	@Column(name="createUserId")
	private String createUserId;
	
	@Column(name="graduateDate")
	private Date graduateDate;
	
	@Column(name="teacherId")
	private String teacherId;
	
	@Column(name = "studentId")
	private String studentId;
	
	@Column(name="graduateMark")
	private int graduateMark;

	public TeacherStudent(){
		
	}

	public TeacherStudent(Student student) {
		this.setId(CommonUtils.getKeyId());
		this.setCreateDate(DateUtils.getCurrent());
		this.setCreateUserId(student.getEmployeeId());
		this.setGraduateMark(YesOrNoInteger.no);
		this.setStudentId(student.getEmployeeId());
		this.setTeacherId(student.getTeacherId());
		this.setModelStatus(ModelStatus.add);
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public int getGraduateMark() {
		return graduateMark;
	}

	public void setGraduateMark(int graduateMark) {
		this.graduateMark = graduateMark;
	}

	public Date getGraduateDate() {
		return graduateDate;
	}

	public void setGraduateDate(Date graduateDate) {
		this.graduateDate = graduateDate;
	}
	
	
	
}
